package com.mc.lp.view.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.mc.lp.view.constants.IConstants;

@Controller
public class StaticPageController implements IConstants{
	/*
	 * Following method will serve all direct page requests like home, login, contact us, email us, about us etc.
	 */
	@RequestMapping(value = "/view/{pageName}", method = RequestMethod.GET)
	public String getStaticPage(@PathVariable("pageName") String pageName) {
		return pageName;
	}
}